package in.ac.iitb.cse.nlp.postagger.data;

public class Word {
	private int count;
	private String string;

	public Word(String string) {
		this.string = string;
		this.count = 1;
	}

	public int getCount() {
		return count;
	}

	public void incrementCount() {
		this.count++;
	}

	public String getString() {
		return string;
	}

	@Override
	public String toString() {
		return string;
	}

	@Override
	public boolean equals(Object obj) {
		return string.equals(((Word) obj).getString());
	}
}
